package com.ocm.gateway.exception;

import lombok.Data;
import org.springframework.http.HttpStatus;

/**
 * @Author hqy
 * @Date 06/02/2022
 * @Description
 */
@Data
public class AuthException extends RuntimeException {

	private HttpStatus httpStatus;

	private String message;

	private Integer code;

	public AuthException(HttpStatus httpStatus, String message) {
		this.httpStatus = httpStatus;
		this.message = message;
	}
	public AuthException(HttpStatus httpStatus, String message,Integer code) {
		this.httpStatus = httpStatus;
		this.message = message;
		this.code=code;
	}
}
